import { createApp } from 'vue'
import './style.css'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'

import router from './router'
//引入icon
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
//引入vuex store
import store from './store'

const app=createApp(App)

//路由挂载
app.use(router)
app.use(ElementPlus)
app.mount('#app')
//store挂载
app.use(store)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }



